This stack was designed by Philip A. Mohr, Jr. 4405 N. Rosemead Rosemead, CA 91770
-- part contents for background part 67
----- text -----
Hide Notes
-- part contents for background part 68
----- text -----
7844
-- part contents for background part 58
----- text -----
on makeButton
put the short name of this stack into stackName
go card "My Stacks" of "Home"
set lockScreen to true
doMenu "New Button"
Set rect of button "New Button" to 200,100, 280,160
Set Icon of button "New Button" to 1000
Set showName of button "New Button" to true
set style of button "New button" to transparent
set name of button "New Button" to stackName
put "on mouseUp" into newScript
put "go to" && the short name of the target into line 2 of newScript
-- This isn't what I get, Goodman
put "end mouseUp" into line 3 of newScript
Set Script of button stackName to newScript
Put "Now drag the button" & ¬
"to the desired location...and type Command-Tab"
end makeButton
-- part contents for background part 2
----- text -----
MakeButton - Goodman
-- part contents for background part 3
----- text -----
Goodman's book
-- part contents for background part 13
----- text -----
Home Stack
-- part contents for background part 14
----- text -----
(Untested)
"Each time you create a new HC Stack, it is helpful to have a Home Stack button created so you can go to that stack easily. That way, you won't have to try and find the stack with the Open Stack...method. Here's a suggestion:
"In your Home Stack, make a new card immediately after the Home card. Name it "My Stacks," both in the card name property (using the card info... dialog box) and in the title field at the top of the card...
"Then add the following handler to your Home Stack script. Use it by typing makeButton into the Message Box while in the new stack you're making. The handler makes a button of whatever stack you're in and places it in this My Stacks card of the Home Stack. It leaves the Button tool selected so you can drag the button to an empty spot on the card. The nextt ime you wish to go to that stack, simply click on the button." -- Goodman, P. 602
I probably read this months ago, but it wasn't until afterI had 90% of what you see here done that I ran across this page of the book again. An unconscious memory of it and scripts that do someting similar probably prompted my decision to make the attempt at stack building.
-- part contents for background part 73
----- text -----
Before I can do that, you need to give the script a name. Sorry. Try again.